package com.wyp.dao;

import com.wyp.entity.MSGoods;
import com.wyp.vo.GoodsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MSGoodsMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MSGoods record);

    int insertSelective(MSGoods record);

    MSGoods selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MSGoods record);

    int updateByPrimaryKey(MSGoods record);

    List<GoodsVO> selectGoodsVOs();

    GoodsVO selectGoodsVOById(@Param("goodsId") Long goodsId);

    int  updateByGoodsId(MSGoods goods);
}